﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QPlcPlayer.Models
{

    [Table("AgvCar")]
    public class AgvCar:BaseEntity
    {
        public string CarNumber {  get; set; }
        public string Description {  get; set; }
        public string IP { get; set; } 
        public int PlcType { get; set; } 

        /// <summary>
        /// 小车电量
        /// </summary>
        public string Electricity {  get; set; }
       
        public CarStatus CarStatus { get; set; }
	}

    public enum CarStatus
    {
        [Description("无")]
        None=0,
		/// <summary>
		/// 待机中
		/// </summary>
		[Description("待机中")]
        DaiJi=1,
		/// <summary>
		/// 喂料中
		/// </summary>
		[Description("喂料中")]
        WeiLiao=2,
		/// <summary>
		/// 故障中
		/// </summary>
		[Description("故障中")]
		Trouble=8,
	}
}
